<?php
namespace PsiFramework\Classes\Util\Parameters;

import("Classes.Util.Parameters.Parameters");

use \PsiFramework\Classes\Util\Parameters\Parameters;

/**
 * PsiFramework
 * Php Simple Framework
 *
 * @author Rémi San
 * @version beta
 */

/**
 * The DatabaseParameters class is the class to manage database parameters
 *
 * @package Util.Parameters
 */
class DatabaseParameters extends Parameters
{

    public function __construct(/*array*/ $parameters=null)
    {
        parent::__construct($parameters);
    }

    public function getDBMS()
    {
        return $this->_parameters["type"] ;
    }

    public function getHost()
    {
        return $this->_parameters["host"] ;
    }

    public function getDbName()
    {
        return $this->_parameters["dbName"] ;
    }

    public function getPort()
    {
        return $this->_parameters["port"] ;
    }

    public function getUser()
    {
        return $this->_parameters["user"] ;
    }

    public function getPassword()
    {
        return $this->_parameters["password"] ;
    }

}